
//pure state
public class puzzle_piece
{
    public int left_nub; 
    public int right_nub; 
    public int top_nub; 
    public int bottom_nub; 
    public int piece_num;
    public puzzle_piece(int left, int top, int right, int bot, int num)
    {
        left_nub = left;
        right_nub = right;
        top_nub = top;
        bottom_nub = bot;
        piece_num = num;
        
    }
    
    public void rotate(int much)
    {
        //if much = 0, returns without rotating
        int i = 0;
        if (i < much)
        {
            int temp = left_nub;
            left_nub = top_nub;
            top_nub = right_nub;
            right_nub = bottom_nub;
            bottom_nub = temp;
            i++;
        }
    }
    
    
}
